<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		created(){
			this.init();
		},
		methods:{
			init(){
				// #ifdef H5
				if(this.$env==='0'){
					uni.setStorageSync('token',
					'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJhcHBfdXNlcjoxNTY1NjYyMTA1MDcwMzMzOTU0Iiwicm5TdHIiOiJYcWFOV2F4NkVnbmhmVG1SdzRTVHh5YjdwMWE1NDdWSCJ9.BexzuUHT1tjf6KVTow9lrr2AOrJTdGo_DjkLZuBn210')
				}
				// #endif
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>
